package sisgel.user;

public class Student extends User {

	private int idNumber;
	private String course;
	
	public Student() {
		super();
	}
	
	public Student(int userId, String userName, String login,
			String password, String telephone, String email,
			int idNumber, String course) {
		super(userId, userName, login, password, telephone, email);
		this.idNumber = idNumber;
		this.course = course;
	}
	
	public Student(String userName, String login,
			String password, String telephone, String email,
			int idNumber, String course) {
		this(-1, userName, login, password, telephone, email, idNumber, course);
		
		this.userId = saveUser();
	}

	public int getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(int idNumber) {
		this.idNumber = idNumber;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}
	
}
